package com.scsj.supermarket.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.scsj.supermarket.bean.DeliveryAddressBean;
import com.scsj.supermarket.bean.RequestTobeCircleManBean;
import com.scsj.supermarket.bean.ShoperCommitInfoBean;
import com.scsj.supermarket.view.activity.adressmodel.AdressActivity;
import com.scsj.supermarket.view.activity.adressmodel.AdressEditActivity;
import com.scsj.supermarket.view.activity.bankcardmodel.AddBankCardActivity;
import com.scsj.supermarket.view.activity.bankcardmodel.AddBankCardPicActivity;
import com.scsj.supermarket.view.activity.bankcardmodel.SucceedActivity;
import com.scsj.supermarket.view.activity.bankcardmodel.VerificationCardActivity;
import com.scsj.supermarket.view.activity.businesscirclemodel.BusinessCircleDetailActivity;
import com.scsj.supermarket.view.activity.city.SelectCityActivity;
import com.scsj.supermarket.view.activity.collectmodel.MineCollectionActivity;
import com.scsj.supermarket.view.activity.cooperationmodel.BusinessCircleMasterRegisterActivity;
import com.scsj.supermarket.view.activity.cooperationmodel.BusinessCircleMasterRegisterActivity2;
import com.scsj.supermarket.view.activity.cooperationmodel.BusinessCircleMasterRegisterActivity3;
import com.scsj.supermarket.view.activity.cooperationmodel.BusinessOwnersJoinActivity;
import com.scsj.supermarket.view.activity.cooperationmodel.ToCooperationActivity;
import com.scsj.supermarket.view.activity.customerservicemodel.CustomerServiceActivity;
import com.scsj.supermarket.view.activity.customerservicemodel.SurveyFeedbackActivity;
import com.scsj.supermarket.view.activity.generalizemodel.GeneralizeActivity;
import com.scsj.supermarket.view.activity.generalizemodel.GeneralizeMembersActivity;
import com.scsj.supermarket.view.activity.generalizemodel.MyGeneralizeMembersActivity;
import com.scsj.supermarket.view.activity.generalizemodel.ToGeneralizeActivity;
import com.scsj.supermarket.view.activity.goodmodel.CoupouActivity;
import com.scsj.supermarket.view.activity.goodmodel.GoodCommDetailActivity;
import com.scsj.supermarket.view.activity.goodmodel.GoodsDetailActivity;
import com.scsj.supermarket.view.activity.goodmodel.MineCommentActivity;
import com.scsj.supermarket.view.activity.loginmodel.ForgetPasswordActivity;
import com.scsj.supermarket.view.activity.loginmodel.LoginActivity;
import com.scsj.supermarket.view.activity.loginmodel.RegisterActivity;
import com.scsj.supermarket.view.activity.mainmodel.IndexTenFuncActivity;
import com.scsj.supermarket.view.activity.mainmodel.MainActivity;
import com.scsj.supermarket.view.activity.mainmodel.RobActivity;
import com.scsj.supermarket.view.activity.mainmodel.TreasureActivity;
import com.scsj.supermarket.view.activity.mapmodel.AddShopMarkActivity;
import com.scsj.supermarket.view.activity.marketmodel.MarketActivity;
import com.scsj.supermarket.view.activity.messagemodel.MessageActivity;
import com.scsj.supermarket.view.activity.messagemodel.MessageListActivity;
import com.scsj.supermarket.view.activity.ordermodel.InterFlowActivity;
import com.scsj.supermarket.view.activity.ordermodel.MyOrderActivity;
import com.scsj.supermarket.view.activity.ordermodel.OrderDetailActivity;
import com.scsj.supermarket.view.activity.ordermodel.OrderProcessActivity;
import com.scsj.supermarket.view.activity.orderpaymodel.OrderPayActivity;
import com.scsj.supermarket.view.activity.personalsettingmodel.ChangeNickNameActivity;
import com.scsj.supermarket.view.activity.personalsettingmodel.ChangeSexActivity;
import com.scsj.supermarket.view.activity.scanmodel.ScanCodeActivity;
import com.scsj.supermarket.view.activity.serchmodel.MapSearchResultActivity;
import com.scsj.supermarket.view.activity.serchmodel.SearchActivity;
import com.scsj.supermarket.view.activity.serchmodel.SearchResultActivity;
import com.scsj.supermarket.view.activity.settingmodel.AccountBindingActivity;
import com.scsj.supermarket.view.activity.settingmodel.AllGoodsCommentActivity;
import com.scsj.supermarket.view.activity.settingmodel.AuthenticationActivity;
import com.scsj.supermarket.view.activity.settingmodel.ChangeLoginPasswordActivity;
import com.scsj.supermarket.view.activity.settingmodel.ChangePaymentPasswordActivity;
import com.scsj.supermarket.view.activity.settingmodel.GeneralSettingsActivity;
import com.scsj.supermarket.view.activity.settingmodel.NewAboutUsActivity;
import com.scsj.supermarket.view.activity.settingmodel.NewRetrievePasswordActivity;
import com.scsj.supermarket.view.activity.settingmodel.NewSettingActivity;
import com.scsj.supermarket.view.activity.settingmodel.PasswordVerificationCodeActivity;
import com.scsj.supermarket.view.activity.settingmodel.PaymentSettingsActivity;
import com.scsj.supermarket.view.activity.settingmodel.PersonalInformationActivity;
import com.scsj.supermarket.view.activity.settingmodel.RealNameAuthenticationActivity;
import com.scsj.supermarket.view.activity.settingmodel.RealNameAuthenticationShowActivity;
import com.scsj.supermarket.view.activity.settingmodel.ResetPaymentPasswordActivity;
import com.scsj.supermarket.view.activity.settingmodel.SetNewPasswordActivity;
import com.scsj.supermarket.view.activity.settingmodel.SetNewPhoneNumberActivity;
import com.scsj.supermarket.view.activity.settingmodel.SettingActivity;
import com.scsj.supermarket.view.activity.shopermodel.ApplicationRecordActivity;
import com.scsj.supermarket.view.activity.shopermodel.BusinessCheckInActivity;
import com.scsj.supermarket.view.activity.shopermodel.DeliveryRecruitActivity;
import com.scsj.supermarket.view.activity.shopermodel.PhoneCodeVerificationActivity;
import com.scsj.supermarket.view.activity.shopermodel.RegisterFirstStepActivity;
import com.scsj.supermarket.view.activity.shopermodel.RegisterFourStepActivity;
import com.scsj.supermarket.view.activity.shopermodel.RegisterSecondStepActivity;
import com.scsj.supermarket.view.activity.shopermodel.RegisterThirdStepActivity;
import com.scsj.supermarket.view.activity.shopmodel.AllBrandActivity;
import com.scsj.supermarket.view.activity.shopmodel.GoodsSortActivity;
import com.scsj.supermarket.view.activity.shopmodel.ShopActivity;
import com.scsj.supermarket.view.activity.shopmodel.ShopClassifyActivity;
import com.scsj.supermarket.view.activity.shopmodel.ShopDetailsActivity;
import com.scsj.supermarket.view.activity.shopmodel.TotalGoodsActivity;
import com.scsj.supermarket.view.activity.splashmodel.SplashActivity;
import com.scsj.supermarket.view.activity.submitmodel.SubmitOrderActivity;
import com.scsj.supermarket.view.activity.testmodel.TestGoodsTypeActivity;
import com.scsj.supermarket.view.activity.vipmodel.VipCodeActivity;
import com.scsj.supermarket.view.activity.walletmodel.BalanceDetailActivity;
import com.scsj.supermarket.view.activity.walletmodel.CashBalanceActivity;
import com.scsj.supermarket.view.activity.walletmodel.MineRechargeActivity;
import com.scsj.supermarket.view.activity.walletmodel.MyWalletActivity;
import com.scsj.supermarket.view.activity.walletmodel.ShareProfitActivity;
import com.scsj.supermarket.view.activity.walletmodel.WithdrawalRecordActivity;
import com.scsj.supermarket.view.activity.withdrawmodel.WithDrawActivity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import es.dmoral.toasty.Toasty;


/**
 * 用于activity跳转等
 * Created by Zg on 2017/6/13
 */
public class SkipUtils extends IsLoginUtils {

    /**
     * 商家添加标记页面
     *
     * @param mContext
     */
    public static void toAddShopMarkPage(Context mContext) {
        Intent intent = new Intent(mContext, AddShopMarkActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商圈搜索结果页面
     *
     * @param mContext
     */
    public static void toTradeAreaSearchPage(Context mContext) {
        Intent intent = new Intent(mContext, MapSearchResultActivity.class);
        mContext.startActivity(intent);
    }
    public static void toTradeAreaSearchPage(Context mContext, String tradeId, double lat, double lon, String tradePhone) {
        Intent intent = new Intent(mContext, MapSearchResultActivity.class);
        intent.putExtra("tradeId",tradeId);
        intent.putExtra("lat",lat);
        intent.putExtra("lon",lon);
        intent.putExtra("tradePhone",tradePhone);
        mContext.startActivity(intent);
    }
    /**
     * 订单流程页面
     *
     * @param mContext
     */
    public static void toOrderProcessPage(Context mContext) {
        Intent intent = new Intent(mContext, OrderProcessActivity.class);
        mContext.startActivity(intent);
    }
    /**
     * 订单支付页面
     *
     * @param mContext
     */
    public static void toOrderPayPage(Context mContext) {
        Intent intent = new Intent(mContext, OrderPayActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 搜索结果页面
     *
     * @param mContext
     * @param searchResultBean
     */
//    public static void toSearchResultPage(Context mContext, SearchResultBean searchResultBean) {
//        Intent intent = new Intent(mContext, SearchResultActivity.class);
//        Bundle mBundle = new Bundle();
//        mBundle.putSerializable("searchResulInfo",searchResultBean);
//        intent.putExtras(mBundle);
//        mContext.startActivity(intent);
//    }
    /**
     * 搜索结果页面
     * @param mContext
     */
    public static void toSearchResultPage(Context mContext, String keyword) {
        Intent intent = new Intent(mContext, SearchResultActivity.class);
        intent.putExtra("keyword",keyword);
        mContext.startActivity(intent);
    }

    /**
     * 全部商品评论页面
     *
     * @param mContext
     */
    public static void toMineCommentPage(Context mContext) {
        Intent intent = new Intent(mContext, MineCommentActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我的评论页面
     *
     * @param mContext
     */
    public static void toAllGoodsCommentPage(Context mContext) {
        Intent intent = new Intent(mContext, AllGoodsCommentActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 提交订单页面
     *
     * @param mContext
     */
    public static void toSubmitOrderPage(Context mContext) {
        Intent intent = new Intent(mContext, SubmitOrderActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 添加银行卡图片页面
     *
     * @param mContext
     */
    public static void toAddBankPicPage(Context mContext) {
        Intent intent = new Intent(mContext, AddBankCardPicActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 找回密码页面
     *
     * @param mContext
     */
    public static void toForgetPassWord(Context mContext) {
        Intent intent = new Intent(mContext, ForgetPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家入驻页面
     */
    public static void toBusinessCheckin(Context mContext) {
        Intent intent = new Intent(mContext, BusinessCheckInActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第一步页面
     */
    public static void toRegisterFirstStep(Context mContext) {
        Intent intent = new Intent(mContext, RegisterFirstStepActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第二步页面
     */
    public static void toRegisterSecondStep(Context mContext, ShoperCommitInfoBean shoperCommitInfoBean) {
        Intent intent = new Intent(mContext, RegisterSecondStepActivity.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("delivery_shopdata",shoperCommitInfoBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第三步页面
     */
    public static void toRegisterThirdStep(Context mContext,ShoperCommitInfoBean shoperCommitInfoBean) {
        Intent intent = new Intent(mContext, RegisterThirdStepActivity.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("delivery_shopdata2",shoperCommitInfoBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第四步页面
     */
    public static void toRegisterFourStep(Context mContext, ShoperCommitInfoBean shoperCommitInfoBean) {
        Intent intent = new Intent(mContext, RegisterFourStepActivity.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("delivery_shopdata3",shoperCommitInfoBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }


    /**
     * 获取银行卡列表界面
     */
    public static void toAddBankCardList(Context mContext) {
        Intent intent = new Intent(mContext, AddBankCardActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家审核记录页面
     */
    public static void toApplicationRecord(Context mContext) {
        Intent intent = new Intent(mContext, ApplicationRecordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我的收藏页面
     */
    public static void toMineCollection(Context mContext) {
        Intent intent = new Intent(mContext, MineCollectionActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 優惠券頁面
     */
    public static void toCoupon(Context mContext) {
        Intent intent = new Intent(mContext, CoupouActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 登录页面
     */
    public static void toLogin(Context mContext) {
        Intent intent = new Intent(mContext, LoginActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 注册页面
     */
    public static void toRegister(Context mContext) {

    }

    /**
     * 账户管理
     */
    public static void toSetting(Context mContext) {
        if (isLogin(mContext)) {//验证是否登录
            Intent intent = new Intent(mContext, SettingActivity.class);
            mContext.startActivity(intent);
        }
    }

    /**
     * 跳转到新的设置页面
     *
     * @param mContext
     */
    public static void toNewSetting(Context mContext) {
        if (isLogin(mContext)) {//验证是否登录
            Intent intent = new Intent(mContext, NewSettingActivity.class);
            mContext.startActivity(intent);
        }
    }


    /**
     * 分类商品列表
     */
    public static void toGoodsSort(Context mContext) {
        Intent intent = new Intent(mContext, GoodsSortActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商品不同类型  测试用
     */
    public static void toTestGoodsType(Context mContext) {
        Intent intent = new Intent(mContext, TestGoodsTypeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商品详情
     */
    public static void toGoodsDetails(Context mContext, int goodsType) {
        Intent intent = new Intent(mContext, GoodsDetailActivity.class);
        Bundle bundle = new Bundle();
        bundle.putInt("goodsType", goodsType);//商品类型
        intent.putExtras(bundle);
        mContext.startActivity(intent);
    }

    /**
     * 商品评价详情
     */
    public static void toGoodCommDetail(Context mContext) {
        Intent intent = new Intent(mContext, GoodCommDetailActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 店铺
     */
    public static void toShop(Context mContext) {
        Intent intent = new Intent(mContext, ShopActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 店铺商品 商品分类 搜索
     */
    public static void toTotalGoods(Context mContext) {
        Intent intent = new Intent(mContext, TotalGoodsActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 店铺 商品分类 分类列表
     */
    public static void toShopClassify(Context mContext) {
        Intent intent = new Intent(mContext, ShopClassifyActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 店铺详情
     */
    public static void toShopDetail(Context mContext) {
        Intent intent = new Intent(mContext, ShopDetailsActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 所有品牌 品牌列表
     */
    public static void toAllBrand(Context mContext) {
        Intent intent = new Intent(mContext, AllBrandActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 增加收货地址
     *
     * @param mContext
     */
    public static void toAdressEdit(Context mContext) {
        Intent intent = new Intent(mContext, AdressEditActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 增加收货地址
     *
     * @param mContext
     * @param dataBean
     */
    public static void toAdressEditWithData(Context mContext, DeliveryAddressBean.DataBean dataBean) {
        Intent intent = new Intent(mContext, AdressEditActivity.class);
        intent.putExtra("adress",dataBean);
        mContext.startActivity(intent);
    }

    /**
     * 订单详情
     *
     * @param mContext
     * @param orderState
     */
    public static void toOrderDetail(Context mContext, int orderState) {
        Intent intent = new Intent(mContext, OrderDetailActivity.class);
        intent.putExtra("order_state", orderState);
        mContext.startActivity(intent);
    }

    /**
     * 个人信息
     *
     * @param mContext
     */
    public static void toPersonalInformation(Context mContext) {
        Intent intent = new Intent(mContext, PersonalInformationActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 收货地址列表
     *
     * @param mContext
     */
    public static void toAdress(Context mContext) {
        Intent intent = new Intent(mContext, AdressActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我的订单
     *
     * @param mContext
     * @param i
     */
    public static void toMyOrder(Context mContext, int i) {
        Intent intent = new Intent(mContext, MyOrderActivity.class);
        intent.putExtra("order_state", i);
        mContext.startActivity(intent);
    }

    /**
     * 修改昵称
     * @param mContext
     */
    public static void toChangeNickName(Context mContext) {
        Intent intent = new Intent();
        intent.setClass(mContext, ChangeNickNameActivity.class);
        Bundle bundle = new Bundle();
        intent.putExtras(bundle);
        ((Activity) mContext).startActivityForResult(intent, 0);
    }


    /**
     * 性别修改
     *
     * @param mContext
     */
    public static void toChangeSex(Context mContext) {
        Intent intent = new Intent();
        intent.setClass(mContext, ChangeSexActivity.class);
        Bundle bundle = new Bundle();
        intent.putExtras(bundle);
        ((Activity) mContext).startActivityForResult(intent, 1);
    }

    /**
     * 扫描
     *
     * @param mContext
     */
    public static void toMyScan(Context mContext) {
        Intent intent = new Intent(mContext, ScanCodeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 搜索
     *
     * @param mContext
     */
    public static void toSerch(Context mContext) {
        Intent intent = new Intent(mContext, SearchActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 游戏中心
     *
     * @param mContext
     */
    public static void toGameCenter(Context mContext) {
        Toasty.info(mContext, "功能完善中").show();
//        Intent intent = new Intent(mContext, LuckeyActivity.class);
//        mContext.startActivity(intent);
    }

    /**
     * 现金红包
     *
     * @param mContext
     */
    public static void toRedPackedge(Context mContext) {
        Toasty.info(mContext, "功能完善中").show();
//        Intent intent = new Intent(mContext, LuckeyActivity.class);
//        mContext.startActivity(intent);
    }

    /**
     * 点点黄金
     *
     * @param mContext
     */
    public static void toGold(Context mContext) {
        Toasty.info(mContext, "功能完善中").show();
//        Intent intent = new Intent(mContext, LuckeyActivity.class);
//        mContext.startActivity(intent);
    }

    /**
     * 酒店
     *
     * @param mContext
     */
    public static void toHotel(Context mContext) {
        Toasty.info(mContext, "功能完善中").show();
//        Intent intent = new Intent(mContext, HotelActivity.class);
//        mContext.startActivity(intent);
    }

    /**
     * 物流信息
     *
     * @param mContext
     */
    public static void toInterFlow(Context mContext) {
        Intent intent = new Intent(mContext, InterFlowActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 找回密码，验证码验证手机号
     *
     * @param mContext
     */
    public static void toPasswordVerificationCode(Context mContext) {
        Intent intent = new Intent(mContext, PasswordVerificationCodeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 找回密码，设置新密码
     *
     * @param mContext
     */
    public static void toSetNewPassword(Context mContext) {
        Intent intent = new Intent(mContext, SetNewPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 注册页面
     *
     * @param mContext
     */
    public static void toRegisterPage(Context mContext) {
        Intent intent = new Intent(mContext, RegisterActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 百宝箱
     *
     * @param mContext
     */
    public static void toTreasure(Context mContext) {
        Intent intent = new Intent(mContext, TreasureActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 支付设置
     *
     * @param mContext
     */
    public static void toPaymentSettings(Context mContext) {
        Intent intent = new Intent(mContext, PaymentSettingsActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 手机验证身份
     */
    public static void toAuthentication(Context mContext) {
        Intent intent = new Intent(mContext, AuthenticationActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 社交帐号绑定
     */
    public static void toAccountBinding(Context mContext) {
        Intent intent = new Intent(mContext, AccountBindingActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 登录密码重置
     */
    public static void toChangeLoginPsw(Context mContext) {
        Intent intent = new Intent(mContext, ChangeLoginPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 通用设置
     */
    public static void toGeneralSettings(Context mContext) {
        Intent intent = new Intent(mContext, GeneralSettingsActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 关于我们
     *
     * @param mContext
     */
    public static void toAboutOus(Context mContext) {
        Intent intent = new Intent(mContext, NewAboutUsActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 实名认证
     */
    public static void toRealNameAuthentication(Context mContext) {
        Intent intent = new Intent(mContext, RealNameAuthenticationActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 修改/重置支付密码
     * 修改支付密码
     */
    public static void toChangePaymentPwd(Context mContext) {
        Intent intent = new Intent(mContext, ChangePaymentPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 重置支付密码
     */
    public static void toRetrievePaymentPwd(Context mContext) {
        Intent intent = new Intent(mContext, NewRetrievePasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 重置支付密码
     */
    public static void toResetPaymentPwd(Context mContext) {
        Intent intent = new Intent(mContext, ResetPaymentPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 重置支付密码
     */
    public static void toResetPaymentPwdWithCode(Context mContext,String SmsCode) {
        Intent intent = new Intent(mContext, ResetPaymentPasswordActivity.class);
        intent.putExtra("SmsCode",SmsCode);
        mContext.startActivity(intent);
    }

    /**
     * 查看实名认证信息
     *
     * @param mContext
     */
    public static void toRealNameAuthenticationShow(Context mContext) {
        Intent intent = new Intent(mContext, RealNameAuthenticationShowActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 设置新的手机号码
     *
     * @param mContext
     */
    public static void toSetNewPhoneNumber(Context mContext,String oldPhone,String oldSmsCode) {
        Intent intent = new Intent(mContext, SetNewPhoneNumberActivity.class);
        intent.putExtra("oldPhone",oldPhone);
        intent.putExtra("oldSmsCode",oldSmsCode);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到成功页面
     *
     * @param mContext
     */
    public static void toSucceedActivity(Context mContext) {
        Intent intent = new Intent(mContext, SucceedActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到添加银行卡页面
     *
     * @param mContext
     */
    public static void toAddBankCard(Context mContext) {
        Intent intent = new Intent(mContext, AddBankCardActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我的钱包页面
     */
    public static void toMyWallet(Context mContext) {
        Intent intent = new Intent(mContext, MyWalletActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 提现
     */
    public static void toCashBalance(Context mContext,double balance,double rate) {
        Intent intent = new Intent(mContext, CashBalanceActivity.class);
        intent.putExtra("balance",balance);
        intent.putExtra("rate",rate);
        mContext.startActivity(intent);
    }

    /**
     * 优惠券
     *
     * @param mContext
     */
    public static void toCoupou(Context mContext) {
        Intent intent = new Intent(mContext, CoupouActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我要推广
     *
     * @param mContext
     */
    public static void toGeneralize(Context mContext) {
        Intent intent = new Intent(mContext, GeneralizeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我要合作
     */
    public static void toToCooperation(Context mContext) {
        Intent intent = new Intent(mContext, ToCooperationActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 配送招募
     */
    public static void toDeliveryRecruit(Context mContext) {
        Intent intent = new Intent(mContext, DeliveryRecruitActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 余额明细
     *
     * @param mContext
     */
    public static void toBalance(Context mContext) {
        Intent intent = new Intent(mContext, BalanceDetailActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 验证银行卡信息
     *
     * @param mContext
     */
    public static void toVerificationCard(Context mContext, HashMap map) {
        Intent intent = new Intent(mContext, VerificationCardActivity.class);
        Bundle bundle = new Bundle();
        intent.putExtra("map", map);
        mContext.startActivity(intent);
    }

    /**
     * 绑定银行卡的银行预留手机号码验证页面
     */
    public static void toPhoneCodeVerification(Context mContext) {
        Intent intent = new Intent(mContext, PhoneCodeVerificationActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 绑定银行卡的银行预留手机号码验证页面
     */
    public static void toPhoneCodeVerification(Context mContext, String type) {
        Intent intent = new Intent(mContext, PhoneCodeVerificationActivity.class);
        intent.putExtra("type", type);
        mContext.startActivity(intent);
    }

    /**
     * 店铺详情
     */
    public static void toMarketDetail(Context mContext) {
        Intent intent = new Intent(mContext, MarketActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 广告页
     */
    public static void toSpash(Context mContext) {
        Intent intent = new Intent(mContext, SplashActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 主页
     */
    public static void toMain(Context mContext) {
        Intent intent = new Intent(mContext, MainActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 消息中心
     */
    public static void toMessage(Context mContext) {
        Intent intent = new Intent(mContext, MessageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 消息列表，物流消息，系统通知
     */
    public static void toMessageList(Context mContext) {
        Intent intent = new Intent(mContext, MessageListActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 会员码
     *
     * @param mContext
     */
    public static void toVipCode(Context mContext) {
        Intent intent = new Intent(mContext, VipCodeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 圈主加盟
     */
    public static void toBusinessCircleMasterRegister(Context mContext) {
        Intent intent = new Intent(mContext, BusinessCircleMasterRegisterActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 圈主加盟2
     */
    public static void toBusinessCircleMasterRegister2(Context mContext, RequestTobeCircleManBean.TradeAreaApplyBean tradeAreaApplyBean) {
        Intent intent = new Intent(mContext, BusinessCircleMasterRegisterActivity2.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("tradeAreaInfo",tradeAreaApplyBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 圈主加盟3
     */
    public static void toBusinessCircleMasterRegister3(Context mContext, RequestTobeCircleManBean.UserBankCardForApplyBean userBankCardForApplyBean, RequestTobeCircleManBean.TradeAreaApplyBean tradeAreaApplyBean) {
        Intent intent = new Intent(mContext, BusinessCircleMasterRegisterActivity3.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("userBankCardInfo",userBankCardForApplyBean);
        mBundle.putSerializable("tradeAreaInfo2",tradeAreaApplyBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 首页十个功能键
     */
    public static void toTenFunc(Context mContext,int type) {
        Intent intent = new Intent(mContext, IndexTenFuncActivity.class);
        intent.putExtra("type",type);
        mContext.startActivity(intent);
    }


    /**
     * 圈主加盟首页
     */
    public static void toBusinessOwnersJoin(Context mContext) {
        Intent intent = new Intent(mContext, BusinessOwnersJoinActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 二维码
     */
    public static void toScanCode(Context mContext) {
        Intent intent = new Intent(mContext, ScanCodeActivity.class);
        mContext.startActivity(intent);
    }


    /**
     * 分润账单
     */
    public static void toShareProfit(Context mContext) {
        Intent intent = new Intent(mContext, ShareProfitActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 充值页面
     */
    public static void toMineRecharge(Context mContext) {
        Intent intent = new Intent(mContext, MineRechargeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我要推广二级页面
     */
    public static void toToGeneralize(Context mContext) {
        Intent intent = new Intent(mContext, ToGeneralizeActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 推广成员
     */
    public static void toGeneralizeMembers(Context mContext) {
        Intent intent = new Intent(mContext, GeneralizeMembersActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我的推荐人
     */
    public static void toMyGeneralizeMembers(Context mContext) {
        Intent intent = new Intent(mContext, MyGeneralizeMembersActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 提现记录
     */
    public static void toWithdrawalRecord(Context mContext) {
        Intent intent = new Intent(mContext, WithdrawalRecordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商圈详情
     */
    public static void toBusinessCircleDetail(Context mContext, String tradeId) {
        Intent intent = new Intent(mContext, BusinessCircleDetailActivity.class);
        intent.putExtra("tradeId",tradeId);
        mContext.startActivity(intent);
    }


    /**
     * 客服中心页面
     */
    public static void toCustomerServicePage(Context mContext) {
        Intent intent = new Intent(mContext, CustomerServiceActivity.class);
        mContext.startActivity(intent);
    }
    /**
     * 调查反馈页面
     */
    public static void toSurveyFeedbackPage(Context mContext) {
        Intent intent = new Intent(mContext, SurveyFeedbackActivity.class);
        mContext.startActivity(intent);
    }

    /**
<<<<<<< HEAD
     * 跳转到店铺页面
     */
    public static void toMarket(Context mContext, String storeId) {
        Intent intent = new Intent(mContext, SurveyFeedbackActivity.class);
        intent.putExtra("storeId",storeId);
        mContext.startActivity(intent);
    }

    /**
     * 地址选择页面
     * @param mContext
     */
    public static void toSelectCity(Context mContext) {
        Intent intent = new Intent(mContext, SelectCityActivity.class);
        mContext.startActivity(intent);
    }
    /*
     * 限时抢购
     */
    public static void toLimitRob(Context mContext) {
        Intent intent = new Intent(mContext, RobActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 余额提现进度 提现详情
     * @param mContext
     */
    public static void toWithDraw(Context mContext,String tackCasdId) {
        Intent intent = new Intent(mContext, WithDrawActivity.class);
        intent.putExtra("tackCasdId",tackCasdId);
        mContext.startActivity(intent);
    }
}
